package com.khoayang.littlefighterchaos.game;

import android.content.Context;

public class SkillFactory {
	public BaseSkill getSkillByName(String name, Context context)
	{
		BaseSkill skill = null;
		if(name.compareTo("WalkingSkill") == 0){
			skill = new WalkingSkill(context);
		}else if(name.compareTo("AttackingSkill") == 0){
			skill = new AttackingSkill(context);
		}else if(name.compareTo("DefendingSkill") == 0){
			skill = new DefendingSkill(context);
		}else if(name.compareTo("IdlingSkill") == 0){
			skill = new IdlingSkill(context);
		}else if(name.compareTo("JumpingSkill") == 0){
			skill = new JumpingSkill(context);
		}else if(name.compareTo("BeHitSkill") == 0){
			skill = new BeHitSkill(context);
		}else if(name.compareTo("DyingSkill") == 0){
			skill = new DyingSkill(context);
		}else if(name.compareTo("TransformingSkill") == 0){
			skill = new TransformingSkill(context);
		}
		return skill;
	}
}
